package com.turing.model.registry.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.turing.orm.model.domain.common.BaseDo;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;


/**
* @Description 
* @Author livin
* @Date 2022-01-24
*/
@ApiModel(value ="")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class RegisterInstance extends BaseDo<RegisterInstance> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("host")
    private String host;

    @TableField("port")
    private String port;

    @TableField("card_no")
    private String cardNo;

    @TableField("job_id")
    private Integer jobId;

    @TableField("app_type")
    private String appType;

    @TableField("templates")
    private String templates;

    @TableField("status")
    private Integer status;

    @TableField("expiration_time")
    private LocalDateTime expirationTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}

